package exception;

import java.io.FileOutputStream;
import java.io.IOException;

public class tt {
    public static void main(String[] args) {
        System.out.println("开始了");
        FileOutputStream fos=null;
        try{
            fos=new FileOutputStream("./d/d2/txt.txt");
            fos.write(1);
        }catch (IOException e){
            System.out.println("出现Io并解决了");
        }finally {
            try {
                fos.close();
            } catch (IOException e) {
                System.out.println("关闭流异常并解决了");
            }
        }
        System.out.println("结束了");
    }
}
